<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/xml"  prefix="x" %>
<c:if test="${not empty requestScope.users}">
  <users>
    <c:forEach var="user" items="${users}">
      <user>
        <id><c:out value="${user.userId}"/></id>
        <name><c:out value="${user.name}"/></name>
        <password><c:out value="${user.password}"/></password>
        <employeeId><c:out value="${user.employeeId}"/></employeeId>

        <roles>
          <c:forEach var="role" items="${user.roles}">
            <role><c:out value="${role.name}"/></role>
          </c:forEach>
        </roles>

        <c:url var="url" value="/admin/userEdit.do">
          <c:param name="user_id" value="${user.userId}" />
        </c:url>
        <edit_url><![CDATA[<c:out value="${url}"/>]]></edit_url>

      </user>
    </c:forEach>
  </users>
</c:if>
